<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="半山腰总是挤的"/>
    <button type="button" @click="save">登录</button>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  methods: {
    save () {
      sessionStorage.setItem('loginId', '1')
    }
  }
}
</script>
